#define _CRT_SECURE_NO_WARNINGS 1
#include "ObjectPool.h"

void test()
{
	ObjectPool<std::vector<int>> obj;
	std::vector<int>* v = obj.New();
	for (int i = 1; i <= 10; i++)
	{
		v->push_back(i);
	}
	for (const auto& e : *v)
	{
		cout << e << " ";
	}
	/*ObjectPool<int> obj;
	int* haha = obj.New();
	*haha = 22;
	cout << *haha << endl;*/
}

int main()
{
	TestObjectPool();
	
	return 0;
}
